map

inline fun <T> map(transform: (L) -> T): Either<T, R>

Maps value of this Left using transform.

Return

Left mapped using transform or this object if this is a Right.

Parameters

transform

Function transforming a Left.